package com.zd.dao;

import java.util.List;

import com.zd.entity.Chapter;
import com.zd.entity.LBVipBook;
import com.zd.entity.Novel;
import com.zd.entity.NovelWriterType;
import com.zd.entity.User;

public interface NovelDao {

	public List<String> novelType();

	public List<String[]> type_NovelName();

	public List<Novel> novelHitsSelect();

	public List<NovelWriterType> novelVipSelect();

	public List<NovelWriterType> SelectNewNovelList();

	public List<NovelWriterType> SelectNewNovelListMore();

	public List<NovelWriterType> SelectNewNovelListMoreTen();

	public List<NovelWriterType> SelectEndNovelListone();

	public List<NovelWriterType> SelectEndNovelListmore();

	public List<NovelWriterType> SelectEndNovelListten();

	public List<NovelWriterType> SelectnovelN();

	public List<Chapter> selectNoveChapter();

	public List<Chapter> selectshuChapter(String novelId);

	public List<NovelWriterType> selectnovelById(String novelId);

	

	public int selectChapterNum(String string);

	public Chapter selectNowChapter(String novelId);

	public List<Novel> selectNovelLimit(int m, int n);

	public int getInforAllNum();

	public int selectByTypeName(String novelType1);

	public void addNovelType(String novelType1);

	public int selectByWriterName(String writerName);

	public void addWriter(String writerName);

	public int updateNovel(Novel novel, int novelTypeId, int writerId);

	public String selectChapterByNovelId(int novelId);

	public int deleteChapterByIds(int novelId);

	public int deleteNovelByNovelId(int novelId);

	public int addNovel(Novel novel, int novelTypeId, int writerId);

	public List<Novel> SelectCollectionBook(User user);//查询收藏书籍
	public List<Novel> SelectRecentBook(User user);//查询最近阅读书籍
	public int DeleteCollectionBook(Integer userId,Integer novelId);//删除收藏书籍

	public int addRead(int userId, String novelId);

	public List<Novel> selectVIP();

	public List<LBVipBook> selectVIPBook();

	public int updateVIPBook(String novelId, String vipBookId);

	public int addHits(String novelId);

	public List<Novel> selectNovelaudit();

	public List<Chapter> selectChapteraudit();

	public int deleteReadHistory(int novelId);


	
}